package com.scau.hwadee.examination.service;

import com.alibaba.fastjson.JSONArray;
import com.github.pagehelper.PageInfo;
import com.scau.hwadee.examination.entity.*;

import java.util.List;

/**
 * @author: YHX
 * @date: 2019/7/28 20:12
 * @description:
 */
public interface ProfessionalManagementService {

    PageInfo<Majorclass> getAllMajorClass(int pageNum, int pageSize);

    List<Nationwidemajor> getAllNationalMajor2ExportExcel();

    List<Major> getAllMajor2ExportExcel();

    /**
      wrh添加
     */
    Major getMajorByPrimaryKey(String mjId);

    int insertNationalMajorFromExcel(List<Nationwidemajor> nationwidemajors);

    int createNewMajorClass(Majorclass majorclass);

    int updateMajorClass(String beforeName, String afterId, String afterName);

    int createNewMajor(Major major);

    int insertMajorFromExcel(List<Major> majorList) throws Exception;

    int updateMajorEnableOrDisable(List<Major> majors);

    PageInfo<Nationwidemajor> getAllNationalMajor(int pageNum, int pageSize);

    PageInfo<Major> getAllMajor(int pageNum, int pageSize);

    PageInfo<Examiner> getAllMajorSubjectSchools(int pageNum, int pageSize);

    int createNewNationalMajor(Nationwidemajor nationwidemajor);

    int deleteNationalMajorList(JSONArray params);

    int updateSubjectSchoolOfMajorByMajorId(String schoolName, String majorId);

    int insertExaminerList(JSONArray params);

    School getSubjectSchool(String schoolId);

    int updateMajorMessage(Major major);

}
